<template>
	<view>
		<u-navbar :title="title1" :autoBack="false" leftIcon=" " placeholder></u-navbar>
		<view class="list">
			<view class="list__item" v-for="(item,index) in list" :key="index" @click="navto('/pages/contxt/details')">
				<view class="u-flex u-flex-y-center">
					<image src="" class="list__item__tx" mode="aspectFill"></image>
					<view class="u-flex u-flex-y-center" style="flex: 1;">
						<view class="list__item__nickname">
							外卖券助手@2
						</view>
						<view class="list__item__type" v-if="item.type==1">
							回复了你
							<view class="list__item__wd">

							</view>
						</view>
						<view class="list__item__type" v-if="item.type==2">
							评论了你的帖子
							<view class="list__item__wd">
						
							</view>
						</view>
					</view>
					<view class="list__item__time">
						1小时前
					</view>
				</view>
				<view class="list__item__contxt">
					big不big
				</view>
				<view class="list__item__conbox">
					<view class="list__item__conbox__text">
						{{item.txt}}
					</view>
					<view class="list__item__conbox__txtbox u-line-1" v-if="item.content">
						{{item.content.txt}}
					</view>
				</view>
			</view>
		</view>
		<tabbar :current="1"></tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					txt: '可以',
					type:1,
					content: {
						txt: '原贴: 0090汉堡工厂1元吃堡 初遇之礼 0090汉堡工厂1…原贴: 0090汉堡工厂1元吃堡 初遇之礼 0090汉堡工厂1…原贴: 0090汉堡工厂1元吃堡 初遇之礼 0090汉堡工厂1…'
					}
				},{
					txt: '可以',
					type:2
				}]
			};
		},
		onLoad() {
			uni.hideTabBar()
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f8f8f8;
	}

	.list {
		padding: 8rpx 8rpx 20rpx;

		&__item {
			background-color: #fff;
			border-radius: 10rpx;
			padding: 34rpx 40rpx 30rpx 30rpx;

			&__tx {
				width: 65rpx;
				height: 65rpx;
				background: #616161;
				border-radius: 50%;
				margin-right: 20rpx;
			}

			&__nickname {
				font-family: PingFang-SC, PingFang-SC;
				font-weight: 500;
				font-size: 23rpx;
				color: #687180;
				margin-right: 25rpx;
			}

			&__type {
				font-family: PingFang-SC, PingFang-SC;
				font-weight: 500;
				font-size: 23rpx;
				color: #8E8E8E;
				display: flex;
				align-items: flex-start;
				line-height: 21.56rpx;
			}

			&__wd {
				width: 6rpx;
				height: 6rpx;
				background: #F46E27;
				margin-left: 20rpx;
				margin-top: 6rpx;
			}

			&__time {
				font-family: PingFang-SC, PingFang-SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #B0B0B0;
			}

			&__contxt {
				font-family: PingFang-SC, PingFang-SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #444344;
				line-height: 38rpx;
				margin: 6rpx 10rpx 16rpx;
			}

			&__conbox {
				background: #F5F6F8;
				margin-left: 8rpx;
				padding: 0 12rpx 16rpx;

				&__text {
					font-family: PingFang-SC, PingFang-SC;
					font-weight: 500;
					font-size: 23rpx;
					color: #444344;
					line-height: 34rpx;
					padding: 16rpx 4rpx 0;
				}

				&__txtbox {
					background: #FDFFFE;
					font-family: PingFang-SC, PingFang-SC;
					font-weight: 500;
					font-size: 23rpx;
					color: #444344;
					line-height: 40rpx;
					padding: 0 23rpx 0 13rpx;
					margin-top: 16rpx;
					width: 600rpx;
					line-height: 58.13rpx;
				}
			}
		}
	}
</style>